 <link type="text/css" href="/admins/js/pagerView/pager-view.css" rel="stylesheet" />
<link type="text/css" href="/admins/js/jquery/css/ui-lightness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />
<script type="text/javascript" src="/admins/js/jquery/jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript" src="/admins/js/jquery/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/admins/js/pagerView/pager-view.js"></script>
<script type="text/javascript">
    $(function(){
    
        $.datepicker.setDefaults( $.datepicker.regional[ "zh-CN" ] );
        $( "#form1 #sel #starttime" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
        $( "#form1 #sel #endtime" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
    });
</script>
<style>
	.datatable {
                width:90%;
		text-align: left;
		font-size: 12px;
		font-family: verdana;
		background: #c0c0c0; margin:2px;
	}

	.datatable thead tr,

	.datatable tfoot tr {
		background: #c0c0c0;
	}

	.datatable tbody tr {
		background: #f0f0f0;
                height: 30px;
	}
        
        .dataTable span{
            margin-left: 20px;
            font-size: 14px;
            vertical-align: middle;
        }
	.datatable td, th {
		border: 1px solid white; height:28px;
	}
	.datatable td {background-color:white;}
	
	.datatable .hover td {background-color:#99CCFF;}
	
	.datatable .select td {background-color:#EEEE99;}

	#ui-datepicker-div{ font-size:12px;}
</style>
<div style="padding:2px; margin:2px;" class="dataTable">
    <form action=""  method="get" style="margin:0px" id="form1">
        <div style=" border:1px solid #DDDDDD; padding:2px; margin:2px;line-height: 36px;" id='sel'> 
            <label for="name">用户名：</label><input type="text" id="username" name="username" value="<?php echo $this->nikename;?>"/>
            <label for="starttime">提交时间：</label><input type="text" id="starttime" name="starttime" value="<?php echo $this->starttime;?>" />
            <label for="endtime">-- </label><input type="text" id="endtime" name="endtime" value="<?php echo $this->endtime;?>"  />
            <label for="status">状态：</label>
            <select id="status" name="status">
                  <?php foreach ($this->arrsta as $key => $val){?>
                    <option value="<?php echo $key;?>" <?php if($this->status==$key){echo "selected";}?>><?php echo $val;?></option>
                  <?php }?>
                    <option value="" <?php if($this->status==""){echo "selected";}?>>所有</option>
            </select>
            <input type="submit" id="queryButton" name="queryButton" value="查询"/>
        </div>
    </form>
<table cellspacing="1" width="100%" class="datatable" id="waybill-table">
	<thead>
		<tr >
                        <th class="w0">宝贝信息</th>
			<th class="w1">属性</th>
                        <th class="w0">备注</th>
			<th class="w1">厂家</th>
			<th class="w0">单价</th>
			<th class="w1">数量</th>
                        <th class="w0">实付款</th>
			<th class="w1">操作</th>
		</tr>
	</thead>
	<tbody>
                <?php
                    //if( $this->buylist != ''){
                    //foreach ($this->buylist as $Item) {?>
                    <tr>
                        <td colspan="8"><span><?php echo "用户名".":"."仓库号"?></span><span>订单编号：<?php echo "123456";?></span><span>提交时间：<?php echo date('Y-m-d H:i');?></span></td>
                    </tr>
                    <tr>
                        <?php //foreach ($Item->shipdetail as $val){?>
                        <td valign="middle" class="w0">
                            <?php echo "id";?><img src="/data/day/daypay.jpg" width="30px" height="30px" style="vertical-align:middle;"/>
                            <?php echo strlen("abcd")>50?mb_substr('abcd',0,50, 'utf-8'):'abcd';?>阿德勒撒旦了福建法律斯大林水打翻了水打翻了上的解放军是第六届  斯大林
                        </td>
                        <td class="w1"> <?php echo "属性";?>奥斯卡的斯大林圣诞节</td>
                        <td class="w0"><?php echo "备注";?></td>
                        <td class="w1" align="center"><?php echo "厂家";?></td>
                        <td class="w0" align="center"><?php echo "单价";?>36</td>
                        <td class="w1" align="center"><?php echo "数量";?>2</td>
                        <td class="w0" rowspan="<?php //echo count($Item->shipdetail);?>" align="center">￥<?php echo "总单价";?></td>
                        <td class="w1" align="center">操作</td>
                    </tr>
                <?php //} }}?>
	</tbody>
</table>
 <?php
    echo $this->partial('paging.phtml', array("pages" => $this->billall,"pamas"=>"username=".$this->username."&storeno=$this->storeno&dateselect=$this->dateselect&starttime=$this->starttime&endtime=$this->endtime&status=$this->status"));        
?>
</div>
